<!-- Sidebar starts -->
<div class="sidebar">

	<div class="sidey">

		<!-- Logo -->
		<div class="logo">
			<h1><a href="index.html"><i class="fa fa-desktop br-red"></i> Portal <span>Green Prosperity</span></a></h1>
		</div>
		
		<div class="sidebar-dropdown"><a href="#" class="br-red"><i class="fa fa-bars"></i></a></div>
		
		<div class="side-nav">
		
			<div class="side-nav-block">
				<h4>Main</h4>
				<!-- Sidebar links -->
				<ul class="list-unstyled">
					<?php if(Yii::app()->helper->getRole(Yii::app()->user->Id) == "admin"){ ?>
						<li><a href="<?php echo Yii::app()->createUrl('user/profile'); ?>"><i class="fa fa-desktop"></i> Profile</a></li>
						<li><a href="<?php echo Yii::app()->createUrl('user/admin?activeMail='); ?>"><i class="fa fa-user"></i> Manage User </a></li>
						<li><a href="<?php echo Yii::app()->createUrl('user'); ?>"><i class="fa fa-wrench"></i> List User </a></li>
						<li><a href="<?php echo Yii::app()->createUrl('user/project'); ?>"><i class="fa fa-file"></i>Project</a></li>
						<li><a href="<?php echo Yii::app()->createUrl('master/content'); ?>"><i class="fa fa-file-text-o"></i> Manage Content</a></li>
						<li><a href="<?php echo Yii::app()->createUrl('rights'); ?>"><i class="fa fa-lock"></i> Rights</a></li>
					<?php } ?>
					<?php if(Yii::app()->helper->getRole(Yii::app()->user->Id) == "member"){ ?>
						<li><a href="<?php echo Yii::app()->createUrl('user/profile'); ?>"><i class="fa fa-desktop"></i> Profile</a></li>
						<li><a href="<?php echo Yii::app()->createUrl('user/profile/edit'); ?>"><i class="fa fa-user"></i> Manage Profile </a></li>
						<li><a href="<?php echo Yii::app()->createUrl('user/profile/changepassword'); ?>"><i class="fa fa-lock"></i> Change Password </a></li>
						<li><a href="<?php echo Yii::app()->createUrl('user/project'); ?>"><i class="fa fa-file"></i>Manage Project</a></li>
					<?php } ?>
				</ul>
			</div>
		</div>
		
		<!-- Sidebar navigation ends -->
		
	</div>
</div>
<!-- Sidebar ends -->
